<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:85:"D:\php-pcweb-tdw\PHPTutorial\WWW\tdw\public/../application/index\view\cart\index.html";i:1530771943;s:76:"D:\php-pcweb-tdw\PHPTutorial\WWW\tdw\application\index\view\common\head.html";i:1530085289;s:75:"D:\php-pcweb-tdw\PHPTutorial\WWW\tdw\application\index\view\common\top.html";i:1529890695;s:76:"D:\php-pcweb-tdw\PHPTutorial\WWW\tdw\application\index\view\common\foot.html";i:1531124263;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>购物车 - 胎大王</title>
	<meta charset="UTF-8">
	<meta name="baidu-site-verification" content="9VtZWv6p9u" />
<meta content="胎大王,轮胎直购网,卡车轮胎,真空胎购买,轮胎店加盟,载重轮胎,矿山胎,TDW,山东轮胎" name="Keywords">
<meta name="description" content="胎大王—卡客轮胎直购网
成立于2014年12月，注册资本5000万元，总部位于著名的轮胎之都山东广饶，是卡客轮胎细分市场国内唯一的互联网垂直服务平台
" />
<!-- reset -->
<link rel="stylesheet" href="/css/normalize.css">
<!-- 字体库 -->
<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/pure-min.css">
<!-- wow.js -->
<link rel="stylesheet" href="/css/animate.min.css">
<!-- 通用样式 -->
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<link rel="stylesheet" type="text/css" href="/css/motai.css">
<!-- jquery -->
<script src="/js/jquery-1.12.3.min.js"></script>
<script src="/js/modal.js"></script>
<!-- 顶部固定 -->
<script src="/js/stickUp.min.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?e2d8288cf7a602d26c80efa173f808b6";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<base target="_Self">
	<script src="/js/cart.js"></script>
	<script src="/js/layer/layer.js"></script>
</head>
<body>

<div class="container">
<div class="head">
	<div class="contai">
		<div class="pure-g">
			<div class="pure-u-8-24"><p>胎大王产业供应链共享服务平台欢迎您！</p></div>
			<div class="pure-u-16-24 right">
				<style>
					.indexLogin{display:none;}
					.memberLogin{display:block;}
				</style>
				<div class="indexLogin">
					<p>您好，请<a href="/login.html"  target="_self">登录</a></p><p class="jiange"> &nbsp;</p>
					<p id="bus_wechat">
						<a href="javascript:;">企业微信</a><span><img src="/images/ewm-big.jpg"></span></p>

				</div>
				<div class="memberLogin">
					<p>您好，<span class="memberPhone"></span></p><p class="jiange"> &nbsp;</p>
					<p><a href="/member.html"  target="_self">个人中心</a><p class="jiange"> &nbsp;</p>
					<p><a href="/logout.html"  target="_self">退出登录</a></p>
				</div>

			</div>

		</div>
	</div>
</div>
<div class="nav">
	<div class="contai">
		<div class="pure-g">
			<div class="pure-u-3-24">
				<h1><a target="_self" href="/" title="胎大王"><img src="/images/logo.jpg" alt="胎大王"></a></h1>
			</div>
			<div class="pure-u-21-24">
				<div class="menu">
				        <?php 
                        if(empty($act))
                        {
                            $act = 1;
                        }
                         ?>
					<ul>
						<li><strong><a href="/"  <?php if($act=='index'): ?>class="active"<?php else: endif; ?> >首页</a></strong></li>
						<li><strong><a href="/notice.html"  <?php if($act=='notice'): ?>class="active"<?php else: endif; ?>>信息公告</a></strong></li>
						<li><strong><a href="/product.html"  <?php if($act=='product'): ?>class="active"<?php else: endif; ?>>产品列表</a></strong></li>
						<li><strong><a href="/News/index.html"  <?php if($act=='news'): ?>class="active"<?php else: endif; ?>>新闻资讯</a></strong></li>
						<li><strong><a href="/member.html"  <?php if($act=='member'): ?>class="active"<?php else: endif; ?>>个人中心</a></strong></li>
						<li><strong><a href="/merchants.html"  <?php if($act=='merchants'): ?>class="active"<?php else: endif; ?>>招商加盟</a></strong></li>
						<li class="cart"><a href="/cart.html" class="button-secondary pure-button"><i class="fa fa-shopping-cart"></i> 购物车详情</a>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>

	<div class="cart">
		<div class="cart-banner"></div>
		<div class="contai">
			<span class="f-bk30"></span><span class="f-bk10"></span>
			<div class="cart-con">
				<form id="formData" action="/cartSubmit.html" method="post">
					<table id="cartTable" class="table"  valign="middle">
						<tr>
							<th width="180">全选</th>
							<th>商品</th>
							<th width="120" class="f-textc">单价</th>

							<th width="80">数量</th>
							<th width="120">小计</th>
							<th width="80">操作</th>
						</tr>
						<?php if(empty($data) || (($data instanceof \think\Collection || $data instanceof \think\Paginator ) && $data->isEmpty())): ?>
						<tr class="cart-info"  valign="top">
							<td colspan="6">
								<div>
									<p>您的购物车还没有添加商品</p>
								</div>
							</td>
						</tr>
						<?php else: if($data['code']==10004): ?>
						<tr class="cart-info"  valign="top">
							<td colspan="6">
								<div>
									<p>您的购物车还没有添加商品</p>
								</div>
							</td>
						</tr>
						<?php elseif($data['code']==1004): ?>
						<tr class="cart-info"  valign="top">
							<td colspan="6">
								<div>
									<p>您的购物车还没有添加商品</p>
								</div>
							</td>
						</tr>
						<?php else: if(is_array($data['data']['cartItemArray']) || $data['data']['cartItemArray'] instanceof \think\Collection || $data['data']['cartItemArray'] instanceof \think\Paginator): $i = 0; $__LIST__ = $data['data']['cartItemArray'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<tr class="imfor">
							<td class="pic"><input type='checkbox' name="item[<?php echo $vo['productId']; ?>]" class="Each"><a target="_blank" <?php if($vo['type']=='deposit'): ?>href="/depositDetail.html?id=<?php echo $vo['productId']; ?>" <?php else: ?>href="/dividendDetail.html?id=<?php echo $vo['productId']; ?>"<?php endif; ?>><img src="<?php echo $vo['image']; ?>" alt="<?php echo $vo['name']; ?>"></a></td>
							<td class="tit"><p><a target="_blank"<?php if($vo['type']=='deposit'): ?>href="/depositDetail.html?id=<?php echo $vo['productId']; ?>" <?php else: ?>href="/dividendDetail.html?id=<?php echo $vo['productId']; ?>"<?php endif; ?>><?php echo $vo['name']; ?></a></p>商品类型：<?php if($vo['type']=='deposit'): ?>即时订单商品<?php else: ?>分红式订单商品<?php endif; ?></td><input type="hidden" value="<?php echo $vo['productId']; ?>" name='productId' />
							<td class="pices"><p>￥<?php echo $vo['price']; ?></p></td>
							<td class="num"><span class="reduc">&nbsp;-&nbsp;</span><input class="numinput" type="text" name='quantity[<?php echo $vo['productId']; ?>]' value="<?php echo $vo['quantity']; ?>" /><span class="add">&nbsp;+</span></td>
							<td class="totle">￥<?php echo $vo['subtotal']; ?></td>
							<td class="del"><a href="javascript:;" target="_self" data-del='<?php echo $vo['productId']; ?>'><i class="fa fa-close"></i>删除商品</a></td>
						</tr>						
						<?php endforeach; endif; else: echo "" ;endif; ?>
						<span class="f-bk30"></span>
						<tr>
							<td colspan="6" >
								<div class="cart-bottom">
									<div>
										<ul>
											<li><label><input type='checkbox' class="checkboxall2"  /> 全选</label>&emsp;&emsp;</li>
											<li><a target="_self"  class="foot_del">删除选中的商品</a>&emsp;&emsp;</li>
										</ul>
									</div>
									<span class="f-bk3"></span>
								</div>
							</td>
						</tr>
						<tr class="cart-bm">
							<td colspan="6">
								<div class="f-fr ">
									<button type="button" class="button-red pure-button submit" style="width:150px;">立即结算</button>
									<span class="f-bk10"></span>
								</div>
								<div class="f-fr jg">商品总价：<span class="amount">￥0</span><span class="fun-red">元</span></div>

							</td>
						</tr>						
						<?php endif; endif; ?>
					</table>
				</form>
				<span class="f-bk30"></span>
			</div>
			<span class="f-bk20"></span>
		</div>
	</div>

	<div class="footer">
	<div class="contai">

		<div class="pure-g help">

			<div class="pure-u-1-5">
				<dl>
					<dt>购胎指南</dt>
					<dd><a href="/article/10/352.html">购物流程</a></dd>
					<dd><a href="/article/10/345.html">发票制度</a></dd>
					<dd><a href="/article/10/351.html">账号管理</a></dd>
				</dl>
			</div>
			<div class="pure-u-1-5">
				<dl>
					<dt>支付方式</dt>
					<dd><a href="/article/4/354.html">网银支付</a></dd>
					<dd><a href="/article/4/355.html">线下转账</a></dd>
				</dl>
			</div>
			<div class="pure-u-1-5">
				<dl>
					<dt>提货方式</dt>
					<dd><a href="/article/12/344.html">德邦托运</a></dd>
					<dd><a href="/article/12/343.html">仓库自提</a></dd>
					<dd><a href="/article/12/356.html">公司配车</a></dd>
				</dl>
			</div>

			<div class="pure-u-1-5">
				<dl>
					<dt>售后服务</dt>
					<dd><a href="/article/6/341.html">三包售后政策</a></dd>
					<dd><a href="/article/6/342.html">售后热线</a></dd>
					<dd><a href="/article/6/350.html">处理流程</a></dd>
				</dl>
			</div>

			<div class="ewm"></div>
		</div>
	<div class="about">
		<div>
			<span><a href="/article/7/348.html">公司简介</a></span><p class="jgs"> &nbsp;</p>
			<span><a href="/article/7/349.html">诚聘英才</a></span><p class="jgs"> &nbsp;</p>
			<span><a href="/article/7/353.html">联系我们</a></span>
		</div>
		<div>

			<span><a style="color:#fff" href="http://icp.chinaz.com/info?q=tdw360.com" target="_blank">鲁ICP备14034560号-1</a></span><p class="jgs"> &nbsp;</p>
			<span>
		 		<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=37052302000157" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
				<img src="/img/gonganbeian.png" style="float:left;"/>
				<p style="float:left;height:20px;line-height:20px;margin: 5px 0px 0px 5px; color:#fff;">鲁公网安备 37052302000157号</p >
				</a>
		 	</span><p class="jgs"> &nbsp;</p>
			<span><a style="color:#fff" href="/img/yingyezhizhao.jpg" target="_blank">营业执照</a></span><p class="jgs"> &nbsp;</p>
			<span><a style="color:#fff" href="/img/IDC.jpg" target="_blank">电信增值业务许可证</a></span>
		</div>
	</div>
	<div class="f-bk20"></div>
	</div>
</div>
<div class="copy">
<div  class="contai">
	<div>
		<img src="/images/copy1.png" alt="支付宝">
		<img src="/images/copy2.png" alt="山东工商">
		<img src="/images/copy3.png" alt="可信网站身份验证">
		<img src="/images/copy4.png" alt="平安银行">
		<img src="/images/copy5.png" alt="网警网络110">
		<img src="/images/copy6.png" alt="银联特约商户">
	</div>
	<div style="text-align:right;">
		<span>Copyright© 胎大王信息科技有限公司 2014-2064，All Rights Reserved</span>
	</div>
</div>
</div>
<script src="/js/wow.min.js"></script>
<script src="/js/public.js"></script>
<!--[if lt IE 9]>
    <script src="../js/html5shiv.min.js"></script>
    <script src="../js/respond.min.js"></script>
    <script src="../js/DOMAssistant-2.8.1.js"></script>
    <script src="../js/ie-css3.js"></script>
<![endif]-->

</div>
<script src="/js/jquery.cookie.js"></script>
<script>
$(function(){
	var userInfo = $.cookie('userInfo');
	if(userInfo!=null){
		$(".indexLogin").css("display","none");
		$(".memberLogin").css("display","block");
		var str = userInfo.replace(/^think:/,'');
		userInfo = JSON.parse(str);
		//console.log(JSON.parse(str));
		$(".memberLogin .memberPhone").text(userInfo['username']);
	}else{
		$(".indexLogin").css("display","block");
		$(".memberLogin").css("display","none");
	}

});
</script>
<script type="text/javascript">
	$('#bus_wechat').hover(function(){$(this).find('span').css('display','inline-block')},function(){$(this).find('span').css('display','none')})
</script>
</div>
<script>
$(function(){
	//删除当前行
	$(".del").click(function() {
		var that = this
		layer.confirm("您确定要删除吗？",{btn:['确认','取消']},function(btn){
			var id = $(that).find('a').attr('data-del')+'-';
			$.ajax({
				url: "/Cart/delete.html",
				type: "POST",
				data: {id:id},
				dataType: "json",
				cache: false,
				success: function(data) {
					if(data.code==1||data.code==10004){
						layer.alert("删除成功",function(){
							window.location.href='/cart.html';					
						});	
					}else if(data.code==1004){
						layer.alert(data.msg,function(){
							window.location.href='/login/jump/cart.html';					
						});						
					}else{
						layer.alert(data.msg);
					}
				}
			});			
		});			
	})
	$(".foot_del").click(function() {
		var that = this
		var sum= '';
		$(".Each:checked").each(function() {
			sum += $(this).parents('.imfor').find("input[type='hidden']").val()+'-';
		})
		if(sum==''){
			layer.alert("请选择商品!");
			return false;
		}
		layer.confirm("您确定要删除吗？",{btn:['确认','取消']},function(btn){
			$.ajax({
				url: "/Cart/delete.html",
				type: "POST",
				data: {id:sum},
				dataType: "json",
				cache: false,
				success: function(data) {
					if(data.code==1||data.code==10004){
						layer.alert("删除成功",function(){
							window.location.href='/cart.html';					
						});	
					}else if(data.code==1004){
						layer.alert(data.msg,function(){
							window.location.href='/login/jump/cart.html';					
						});						
					}else{
						layer.alert(data.msg);
					}
				}
			});
		});
	});
	$(".submit").click(function() {
		$(".submit").attr({"disabled":"disabled"});
		$("#formData").submit();
		var index = layer.load(0, {shade: [0.5,'#ccc']}); //0代表加载的风格，支持0-2
	});
});
</script>
</body>
</html>